<?php
class PermissionForm extends Zend_Form {
    public function __construct($options = null) 
    {
    	$baseurl 	= new MHDEV_View_Helper_BaseUrl();
    	$translate	= Zend_Registry::get('lang');
    	
        parent::__construct($options);
        
        $this->setName('permission');
        
        // title
        $title = new Zend_Form_Element_Text('title');
        $title->setLabel($translate->_('form_permission_title'));
        $title->setRequired(true);
        $title->addValidator('NotEmpty');
        $title->setErrorMessages(array(
            0 => $translate->_('form_error_permission_title')
        ));
        
        // delete
		$delete = new Zend_Form_Element_Checkbox('is_deleted');
		$delete->setLabel($translate->_('form_permission_delete'));
		$delete->setDescription($translate->_('form_permission_ddelete'));
        
        // submit
        $submit = new Zend_Form_Element_Submit('submit');
        $submit->setLabel($translate->_('form_save'));
        
        $this->addElements(array($title, $delete, $submit));
    }
}  
?>